package cn.getech.data.development.api;

import cn.getech.data.development.entity.WorkFlowDep;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName WorkFlowDepApi
 * @Description TODO
 * @Author Getech
 * @Date 2020/12/23 10:46
 */

public interface WorkFlowDepApi {

    @RequestMapping(value = "/api/dataBdp/workFlowDep/getWorkFlowDepById",method = RequestMethod.GET)
    WorkFlowDep getWorkFlowDepById(@RequestParam("workFlowDepId") Long workFlowDepId);


    @RequestMapping(value = "/api/dataBdp/workFlowDep/updateWorkFlowDepById",method = RequestMethod.POST)
    void updateWorkFlowDepById(@RequestBody WorkFlowDep workFlowDep);

    @RequestMapping(value = "/api/dataBdp/workFlowDep/selectListByStatus",method = RequestMethod.GET)
    List<WorkFlowDep> selectListByStatus(@RequestParam("status") Integer status);

    @RequestMapping(value = "/api/dataBdp/workFlowDep/updateWorkFlowDepAndStatusById",method = RequestMethod.POST)
    void updateWorkFlowDepAndStatusById(@RequestBody WorkFlowDep workFlowDep);
}
